package com.school.manager.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.school.manager.domaim.SysUser;
import com.school.manager.entity.po.SysUserPo;
import com.school.manager.entity.vo.SysUserVo;

/**
 * description：系统用户Mapper
 * date：2021/10/133:18 下午
 */

public interface SysUserMapper extends BaseMapper<SysUser> {

	/**
	 * 根据班级查询用户
	 * @param page
	 * @param sysUserPo
	 * @return
	 */
	List<SysUserVo> pageByClass(Page<SysUserVo> page, @Param("query") SysUserPo sysUserPo);

	/**
     * 根据班级查询用户（不在该班级）
     * @param sysUserPo
     * @return
     */
	List<SysUserVo> pageNoClass(Page<SysUserVo> page, @Param("query") SysUserPo sysUserPo);
    
}
